home *** CD-ROM | disk | FTP | other *** search
/ 10,000 Great Games / 10,000 Great Games.iso / Product / 66 / data1.cab / Source_Files / Src / FScenery.cpp < prev    next >
C/C++ Source or Header  |  2000-01-16  |  354b  |  25 lines

  1. #include "stdafx.h"
  2.  
  3. cFallingScenery::cFallingScenery(int _x, int _y, cProperties *_orig)
  4.         : cScenery(_x, _y, _orig, "MOVING")
  5. }
  6.  
  7. cFallingScenery::~cFallingScenery()
  8. {
  9. }
  10.  
  11. int cFallingScenery::control()
  12. {
  13.     if (explode)
  14.         return FALSE;
  15.  
  16.     make_trail();
  17.     
  18.     cScenery::control();
  19.     
  20.     bounce_on_boundaries();
  21.     
  22.     return !in_water();
  23. }
  24.